package com.wenlin.myproduction.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author 文琳_377979485@qq.com
 * @time 2021/10/15 0015 下午 3:37
 * @desc 排班管理的上侧列表的统计标题的实体类（夜班数、上班时长）
 */
public class ScheduleTopTotalBean implements Parcelable {
    private String name;

    public ScheduleTopTotalBean(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.name);
    }

    public void readFromParcel(Parcel source) {
        this.name = source.readString();
    }

    protected ScheduleTopTotalBean(Parcel in) {
        this.name = in.readString();
    }

    public static final Creator<ScheduleTopTotalBean> CREATOR = new Creator<ScheduleTopTotalBean>() {
        @Override
        public ScheduleTopTotalBean createFromParcel(Parcel source) {
            return new ScheduleTopTotalBean(source);
        }

        @Override
        public ScheduleTopTotalBean[] newArray(int size) {
            return new ScheduleTopTotalBean[size];
        }
    };
}
